home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol F-12
/
(Vol F-12) Jun 02 2012.iso
/
Screensaver
/
screensaver_installer.exe
/
____swmx
/
scripts
/
frame_1
/
DoAction_16.as
< prev
next >
Wrap
Text File
|
2004-10-21
|
777b
|
30 lines
_global.ScreenweaverTray = function()
{
this.init();
};
ScreenweaverTray.prototype.init = function()
{
};
ScreenweaverTray.prototype.enable = function()
{
swInterface.setEventListener("TrayEvents",this.onTrayEvent);
};
ScreenweaverTray.prototype.disable = function()
{
swInterface.clearEventListener("TrayEvents");
};
ScreenweaverTray.prototype.setIcon = function(path, hint)
{
swInterface.pushArg(typeof path ne "string" ? "" : path);
swInterface.pushArg(typeof hint ne "string" ? "" : hint);
fscommand("sw_setTrayIcon");
};
ScreenweaverTray.prototype.removeIcon = function()
{
fscommand("sw_removeTrayIcon");
};
ScreenweaverTray.prototype.onTrayEvent = function()
{
swEvents.broadcastMessage.apply(swEvents,arguments);
};